package com.techfengs.chapter04;

public class TernaryOperatorExercise {
  public static void main (String[] args) {
    // 求出三个数的最大值？
    int n1 = 553;
    int n2 = 33;
    int n3 = 123;

    int max = (n1>n2) ? n1 : n2;
    max = (max>n3) ? max : n3;
    System.out.println(max);
  }
}
